package com.jeethink.erp.sale.mapper;

import java.util.List;
import com.jeethink.erp.sale.domain.TbSale;

/**
 * 销售Mapper接口
 * 
 * @author ypr
 * @date 2021-06-07
 */
public interface TbSaleMapper 
{
    /**
     * 查询销售
     * 
     * @param saleId 销售ID
     * @return 销售
     */
    public TbSale selectTbSaleById(Long saleId);

    /**
     * 查询销售列表
     * 
     * @param tbSale 销售
     * @return 销售集合
     */
    public List<TbSale> selectTbSaleList(TbSale tbSale);

    /**
     * 新增销售
     * 
     * @param tbSale 销售
     * @return 结果
     */
    public int insertTbSale(TbSale tbSale);

    /**
     * 修改销售
     * 
     * @param tbSale 销售
     * @return 结果
     */
    public int updateTbSale(TbSale tbSale);

    /**
     * 删除销售
     * 
     * @param saleId 销售ID
     * @return 结果
     */
    public int deleteTbSaleById(Long saleId);

    /**
     * 批量删除销售
     * 
     * @param saleIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTbSaleByIds(Long[] saleIds);

    public List<TbSale> findListSale(TbSale tbSale);

}
